package com.oa.mapper;

import com.oa.pojo.Menu;
import com.oa.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author wsrwy
* @description 针对表【menu】的数据库操作Mapper
* @createDate 2023-10-22 21:08:11
* @Entity com.oa.pojo.Menu
*/
@Mapper
public interface MenuMapper{
    //查询用户对应的几级菜单
    List<Menu> selectByUserId(Integer uId, Integer pId);

    //条件查询
    List<Menu> selectAll(Menu menu);
    //删除
    int deleteMenu(Menu menu);
    //修改
    int updateMenu(Menu menu);
    //添加
    int insertMenu(Menu menu);


}




